package user_info

import (
	"permission/databases"
	"time"
)


// 写登陆日志
func LoginWriteLog(loginInfo interface{}) {
	loginSut, ok := loginInfo.(databases.Tpo_Sys_Users_Login)
	if !ok {
		return
	}
	loginSut.Login_time = time.Now()
	loginFac := databases.NewUserLoginFactory()
	loginFac.Table = loginSut
	loginFac.Add()
}
